package com.park.service.impl.resource;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.resource.ResourceDownloadRecordModel;
import com.park.client.service.resource.ResourceDownloadRecordService;
import com.park.dao.resource.ResourceDownloadRecordMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("resourceDownloadRecordService")
public class ResourceDownloadRecordServiceImpl extends BaseServiceImpl<ResourceDownloadRecordModel> implements ResourceDownloadRecordService {
	
	@Autowired
	private ResourceDownloadRecordMapper resourceDownloadRecordMapper;

	@Override
	public boolean insertSelective(ResourceDownloadRecordModel record) {
		return resourceDownloadRecordMapper.insertSelective(record)==1;
	}

	@Override
	public ResourceDownloadRecordModel selectByObject(ResourceDownloadRecordModel record) {
		return resourceDownloadRecordMapper.selectByObject(record);
	}

	@Override
	public List<ResourceDownloadRecordModel> selectByUserId(Long userId) {
		return resourceDownloadRecordMapper.selectByUserId(userId);
	}

}
